const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('zjb_unitzizhidetail', {
    BelongXiaQuCode: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateUserName: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    OperateDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    Row_ID: {
      type: DataTypes.INTEGER,
      allowNull: true
    },
    YearFlag: {
      type: DataTypes.STRING(4),
      allowNull: true
    },
    RowGuid: {
      type: DataTypes.STRING(50),
      allowNull: false
    },
    TitleLevelNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    IsMaster: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    Mark: {
      type: DataTypes.STRING(200),
      allowNull: true
    },
    CertID: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TradeTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    TradeBoundNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    NoteNumber: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    NoteDate: {
      type: DataTypes.DATE,
      allowNull: true
    },
    AddTypeNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    },
    CertTradeStatusNum: {
      type: DataTypes.STRING(50),
      allowNull: true
    }
  }, {
    sequelize,
    tableName: 'zjb_unitzizhidetail',
    timestamps: false
  });
};
